package cn.kgc.controller;

import cn.kgc.pojo.User_login;
import cn.kgc.service.LoginService;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class LoginController {
    @Reference
    private LoginService loginService;

    @RequestMapping("/login.json")
    @ResponseBody
    public User_login login(String userName,String password){
        return loginService.getLogin(userName,password);
    }
}
